'''
Created on 2017-6-22

@author: 24253
'''
import requests
import json,pymysql
from db.write import add_sql

url="https://s.taobao.com/search?data-key=s&data-value=88&ajax=true&_ksTS=1497949320246_1376&q=%E5%B0%8F%E7%B1%B36&imgfile=&js=1&stats_click=search_radio_all:1&initiative_id=staobaoz_20170620&ie=utf8&app=detailproduct&through=1&bcoffset=4&p4ppushleft=6,48"
    


response = requests.get(url)   
res=response.content.decode()

data_dict=json.loads(res)
# # print(data_dict)
 
item_list = data_dict['mods']['itemlist']['data']['auctions']
#     print(item_list)

for item in item_list:
    
    a_=item["detail_url"]
    print("https:"+a_)
    